security: verify deploy manifest integrity at startup#147
Merged
benvinegar merged 2 commits intomainfrom Feb 23, 2026
Merged
Conversation
Greptile SummaryImplements startup integrity verification that checks deployed runtime files against SHA256 hashes in the deploy manifest. The feature adds defense-in-depth against file tampering between deployments. Key changes:
Implementation quality:
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Agent Startup] --> B{verify-manifest.sh exists?}
B -->|No| C[⚠️ Warning: verifier missing]
B -->|Yes| D[Run verify-manifest.sh]
D --> E{Check MODE}
E -->|off| F[Skip verification]
E -->|warn/strict| G{Manifest exists?}
G -->|No| H{MODE=strict?}
H -->|Yes| I[❌ Exit 1]
H -->|No| J[⚠️ Warn & Continue]
G -->|Yes| K{jq available?}
K -->|No| H
K -->|Yes| L[Parse manifest files]
L --> M{Check each file}
M --> N[Skip if matches EXCLUDE_REGEX]
M --> O[Compute SHA256 hash]
O --> P{Hash matches?}
P -->|Yes| Q[Continue]
P -->|No| R[Record mismatch]
R --> S{All files checked?}
Q --> S
S -->|Issues found| T{MODE=strict?}
S -->|No issues| U[✅ Write pass status]
T -->|Yes| V[❌ Write fail status & Exit 1]
T -->|No| W[⚠️ Write warn status & Exit 0]
U --> X[Continue startup]
F --> X
J --> X
C --> X
W --> X
Last reviewed commit: 05e356f |
05e356f to
f16231a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bin/verify-manifest.shoff,warn,strict~/.pi/agent/manifest-integrity-status.jsonValidation
npm run lint:shellnpm run test:shellDO_API_TOKENon an ephemeral Ubuntu droplet:exit 1) and fail statusCloses #120